public class Test {
	public static void main(String[] args) {
		Car motorcycle=new Car();
		motorcycle.setCarName("摩托");
		motorcycle.setUse("短途;");
		motorcycle.drive();
		
		Car hand=new Car();
		hand.setCarName("拖拉机");
		hand.setUse("拉土");
		hand.drive();
		
		Car compact=new Car();
		compact.setCarName("小型汽车");
		compact.setUse("长途");
		compact.drive();
	}

}
